# """
# @Project: Rebar
# @File: supplier_routers.py
# @Author: hzc
# @Date: 2023/4/11 19:01
# """
# from fastapi import APIRouter, Header
#
# from model.db.mapper import get_suppliers
# from utils import SuccessCode, success_res, objs_to_dict
#
# suppliers_router = APIRouter(prefix="/suppliers", tags=['供货商管理接口'])
#
#
# @suppliers_router.get("", name="获取所有供货商信息")
# async def _get_suppliers(token=Header("token")):
#     suppliers = get_suppliers()
#     return success_res({
#         'suppliers': objs_to_dict(suppliers)
#     }, SuccessCode.POST)
